from flask import Flask
# from app.views.finance import main
from app.config import config
def create_app(config_name):

    app = Flask(__name__)
    if config_name not in config:
        config_name = "default"
    app.config.from_object(config[config_name])
    # app.register_blueprint(main)
    return app
